package edu.hdu.hangzhe.bytecode.domain;

import java.util.ArrayList;

/**
 * 动作
 */
public class OP {
    public static final String DEL = "DEL";
    public static final String INS = "INS";

    private String op;
    private Integer idx;
    private ArrayList<ABI> info;

    public OP(String op, Integer idx, ArrayList<ABI> info) {
        this.op = op;
        this.idx = idx;
        this.info = info;
    }

    public ArrayList<ABI> getInfo() {
        return info;
    }
    @Override
    public String toString() {
        return  op + "," + idx + (info != null ? "(START\n" + info + "END)\n": "") + "\n";
    }
}
